package com.ruoyi.system.execution.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.execution.mapper.ContractExecutionRecordsMapper;
import com.ruoyi.system.execution.domain.ContractExecutionRecords;
import com.ruoyi.system.execution.service.IContractExecutionRecordsService;

/**
 * 合同执行Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-27
 */
@Service
public class ContractExecutionRecordsServiceImpl implements IContractExecutionRecordsService 
{
    @Autowired
    private ContractExecutionRecordsMapper contractExecutionRecordsMapper;

    /**
     * 查询合同执行
     * 
     * @param executionId 合同执行主键
     * @return 合同执行
     */
    @Override
    public ContractExecutionRecords selectContractExecutionRecordsByExecutionId(Long executionId)
    {
        return contractExecutionRecordsMapper.selectContractExecutionRecordsByExecutionId(executionId);
    }

    /**
     * 查询合同执行列表
     * 
     * @param contractExecutionRecords 合同执行
     * @return 合同执行
     */
    @Override
    public List<ContractExecutionRecords> selectContractExecutionRecordsList(ContractExecutionRecords contractExecutionRecords)
    {
        return contractExecutionRecordsMapper.selectContractExecutionRecordsList(contractExecutionRecords);
    }

    /**
     * 新增合同执行
     * 
     * @param contractExecutionRecords 合同执行
     * @return 结果
     */
    @Override
    public int insertContractExecutionRecords(ContractExecutionRecords contractExecutionRecords)
    {
        return contractExecutionRecordsMapper.insertContractExecutionRecords(contractExecutionRecords);
    }

    /**
     * 修改合同执行
     * 
     * @param contractExecutionRecords 合同执行
     * @return 结果
     */
    @Override
    public int updateContractExecutionRecords(ContractExecutionRecords contractExecutionRecords)
    {
        return contractExecutionRecordsMapper.updateContractExecutionRecords(contractExecutionRecords);
    }

    /**
     * 批量删除合同执行
     * 
     * @param executionIds 需要删除的合同执行主键
     * @return 结果
     */
    @Override
    public int deleteContractExecutionRecordsByExecutionIds(Long[] executionIds)
    {
        return contractExecutionRecordsMapper.deleteContractExecutionRecordsByExecutionIds(executionIds);
    }

    /**
     * 删除合同执行信息
     * 
     * @param executionId 合同执行主键
     * @return 结果
     */
    @Override
    public int deleteContractExecutionRecordsByExecutionId(Long executionId)
    {
        return contractExecutionRecordsMapper.deleteContractExecutionRecordsByExecutionId(executionId);
    }
}
